package core;

public class Burst {
	
	// Variables
	static String StatusTypes[] = {"Active", "Waiting", "Blocked"};
	private String status;
	private int startCycle, cycles;
	
	// Constructor
	public Burst(String st, int cy, int startCy)
	{
		this.status = st;
		this.cycles = cy;
		this.startCycle = startCy;
	}
	
	public Burst(int st, int cy, int startCy)
	{
		this.status = StatusTypes[st];
		this.cycles = cy;
		this.startCycle = startCy;
	}
	
	// Get
	public String getStatus()	{	return this.status;	}
	public int getStartCycle()	{	return this.startCycle;	}
	public int getCycles()		{	return this.cycles; }
	
	// Set
	public void setStatus(String st)
	{	this.status = st;	}
	
	public void setStartingCycle(int stCy)
	{	this.startCycle = stCy;	}
	
	public void setCycles(int cy)
	{	this.cycles = cy;	}
	
	// toString
	public String toString()
	{	return ("["+this.status+"("+this.cycles+")]");	}
}
